import request from "../utils/axios.js";

export default {
    //设备列表查询
    deviceListSearch(params){
        return request.post('/api/doctor/DeviceListSearch',params)
    },
    //审核列表查询
    bindingDeviceAuditSearch(params){
        return request.post('/api/doctor/bindingDeviceAuditSearch',params)
    },
    //审核申请
    bindingDeviceAudit(params){
        return request.post('/api/doctor/bindingDeviceAudit',params)
    },
    //绑定设备
    bindingDevice(params){
        return request.post('/api/doctor/bindingDevice',params)
    },
    //解绑设备
    unBindingDeviceAudit(params){
        return request.post('/api/doctor/unBindingDeviceAudit',params)
    },
    //查询已生成报告
    searchCreateReportList(params){
        return request.post('/api/doctor/searchCreateReportList',params)
    },
    //查询已诊断报告
    searchFinishReportList(params){
        return request.post('/api/doctor/searchFinishReportList',params)
    },
    //根据医生名称查找医生
    getDoctorName(params) {
        return request.get(`/api/doctor/getNameById/${params}`)
    },
    updateReportState(params)  {
        return request.post('/api/doctor/updateReportState',params)
    },
    getUserData(params) {
        return request.get('/api/doctor/getUserData/${params}')
    },



    // 设备借出与归还 查询所有数据
    getDeviceUsesList(params)  {
        return request.post('/api/deviceUse/listDeviceUses',params)
    },
    //用户归还设备
    returnDevice(params){
        return request.post('/api/deviceUse/returnDevice',params)
    },
    //用户携带设备回家使用
    borrowDeviceToHom(params){
        return request.post('/api/deviceUse/borrowDevice',params)
    },
    //设备序列码模糊查询设备
    getLikeDeviceSerialCode(params){
        return request.get('/api/device/getLikeDeviceSerialCode', {params})
    },
}